﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Gerenciador/Gerenciador.Master" AutoEventWireup="true" CodeBehind="formBanner.aspx.cs" Inherits="CasaisEmEdificacao.Gerenciador.banner.formBanner" %>
<asp:Content ID="Content1" ContentPlaceHolderID="titulo" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="script" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="modulo" runat="server">
    Modulo Banner
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pagina" runat="server">
    Formulário de Banner
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="acoesModulo" runat="server">
    <h1>
        <asp:HyperLink ID="linkListarBanner" NavigateUrl="~/Gerenciador/banner/index.aspx"  runat="server">Lista de banners</asp:HyperLink>
    </h1>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="conteudo" runat="server">

    <asp:Label ID="lblTituloForm" runat="server" Text="Formulário" CssClass="lblTituloForm"></asp:Label>
    <hr class="linhaHrTitulo"/>

    <table>
        <tr>
            <td colspan="3">
                <asp:HiddenField ID="txtCodBanner" runat="server" />
                <asp:Label ID="lblTitulo" runat="server" Text="Título" CssClass="LblForm"></asp:Label>
            </td>
        </tr>

        <tr>
            <td colspan="3">
                <asp:TextBox ID="txtTitulo" MaxLength="255" runat="server" Width="750"></asp:TextBox>
            </td>
        </tr>
        <tr><td colspan="3"><br /></td></tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblDescricao" runat="server" Text="Descrição" CssClass="LblForm"></asp:Label>
            </td>
        </tr>

        <tr>
            <td colspan="3">
                <asp:TextBox ID="txtDescricao" TextMode="MultiLine" Rows="5" MaxLength="500" runat="server" Width="750"></asp:TextBox>
            </td>
        </tr>
        <tr><td colspan="3"><br /></td></tr>
        <tr>
            <td colspan="3">
                <asp:Label ID="lblLink" runat="server" Text="Link" CssClass="LblForm"></asp:Label>
            </td>
        </tr>

        <tr>
            <td colspan="3">
                <asp:TextBox ID="txtLink" MaxLength="1000" runat="server" Width="750"></asp:TextBox>
            </td>
        </tr>
        <tr><td colspan="3"><br /></td></tr>
        <tr>
            <td width="33%">
                <asp:Label ID="lblTarget" runat="server" Text="Target" CssClass="LblForm"></asp:Label>
            </td>

            <td width="33%">
                <asp:Label ID="lblLocalBanner" runat="server" Text="Local Banner" CssClass="LblForm"></asp:Label>
            </td>

            <td width="34%">
                <asp:Label ID="lblStatus" runat="server" Text="Status" CssClass="LblForm"></asp:Label>
            </td>
        </tr>

        <tr>
            <td>
                <asp:DropDownList ID="ddlTarget" runat="server">
                    <asp:ListItem Value="">Selecione</asp:ListItem>
                    <asp:ListItem Value="_blank">Nova Janela</asp:ListItem>
                    <asp:ListItem Value="_parent">Mesma Janela</asp:ListItem>
                </asp:DropDownList>
            </td>

            <td>
                <asp:DropDownList ID="ddlLocalBanner" runat="server"
                DataValueField="CO_LOCAL_BANNER" DataTextField="DS_LOCAL_BANNER">
                </asp:DropDownList>
            </td>

            <td>
                <asp:DropDownList ID="ddlStatus" runat="server">
                    <asp:ListItem Value="">Selecione</asp:ListItem>
                    <asp:ListItem Value="0">Inativo</asp:ListItem>
                    <asp:ListItem Value="1">Ativo</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>

        <tr><td colspan="3"><br /></td></tr>

        <tr>
            <td colspan="3">
                <asp:Label ID="lblArquivo" runat="server" Text="Imagem" CssClass="LblForm"></asp:Label>
            </td>
        </tr>

        <tr>
            <td colspan="3">
                <asp:FileUpload ID="fileImagem" Width="750" runat="server" />
            </td>
        </tr>

        <tr><td colspan="3"><br /></td></tr>

        <tr>
            <td align="right" colspan="3">
                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" 
                    onclick="btnCancelar_Click" />
                <asp:Button ID="btnSalvar" runat="server" Text="Salvar" 
                    onclick="btnSalvar_Click" />
                <asp:Button ID="btnEditar" runat="server" Text="Editar" 
                    onclick="btnEditar_Click" />
            </td>
        </tr>


    </table>

</asp:Content>
